<?php get_header(); ?>
<div id="container" class="twocolumn">
	<div id="content" class="narrowcolumn">
		<?php if (have_posts()) : ?>

		<h2>Search Results</h2>

		<ol>
		<?php while (have_posts()) : the_post(); ?>
			<div class="post">
				<div class="entry">
					<li id="post-<?php the_ID(); ?>">
						<strong><a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>"><?php the_title(); ?> &raquo;</a></strong>
						<br />
						Posted on <a href="<?php the_permalink() ?>" rel="permalink" title="Permalink to <?php the_title(); ?>"><?php the_time('d-M-y') ?></a>. Filed in <?php the_category(', ') ?>. <?php comments_popup_link('Comments (0)', 'Comments (1)', 'Comments (%)'); ?>
					</li>
				</div>
			</div>
		<?php endwhile; ?>
		</ol>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
			<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
		</div>
	
	<?php else : ?>

		<h2>Nothing Found</h2>
		<p>Sorry, but your search yielded no results. Please try some different keywords and search again.</p>
		<?php include (TEMPLATEPATH . '/searchform.php'); ?>

	<?php endif; ?>

	</div>
</div>
<div id="sidebar">
	<ul>
		<?php wp_list_pages('title_li=<h2>Contents</h2>' ); ?>

		<li id="blog-categories">
			<h2>Topics</h2>
			<ul>
				<?php wp_list_cats('sort_column=name&optioncount=1&feed=rss&hierarchical=1'); ?>
			</ul>
		</li>

		<li id="blog-archives">
			<h2>Storage</h2>
			<ul>
				<?php wp_get_archives('type=monthly'); ?>
			</ul>
		</li>

		<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>	
		<?php get_links_list('id-'); ?>

		<li id="meta">
			<h2>Meta</h2>
			<ul>
				<?php wp_register(); ?>
				<li><?php wp_loginout(); ?></li>
				<li><a href="http://wordpress.org/">WordPress</a></li>
			</ul>
		</li>

		<li id="feeds">
			<h2>XML Feeds</h2>
			<ul>
				<li><a href="<?php bloginfo('atom_url'); ?>" title="<?php bloginfo('name'); ?> Atom (XML) Feed">Atom (XML) Feed</a></li>
				<li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php bloginfo('name'); ?> RSS 2.0 (XML) Feed">RSS 2.0 (XML) Feed</a></li>
			</ul>
		</li>

		<?php } ?>

	</ul>
</div>
<?php get_footer(); ?>